import $http from 'static/js/http';

export function register (data) {
  return $http.post('user/member/register', data);
}

export function login (data) {
  return $http.post('user/member/login', data);
}

export function getReceiveAddress (data) {
  return $http.post('user/member-receive-address/', data);
}

export function addReceiveAddress (data) {
  return $http.post('user/member-receive-address/add', data);
}

const user = {
  register,
  login,
  getReceiveAddress,
  addReceiveAddress
}

export default user;
